const Layout = () => import('@/layout/LayoutIndex.vue')

// 仪表盘路由
const dashboardRoute = {
  path: '/dashboard/index',
  name: '/dashboard/index',
  component: () => import('@/views/main/dashboard/index.vue'),
  meta: { title: '首页', cache: true },
}

// 首页路由=>重定向到仪表盘路由
const indexRoute = {
  path: '/',
  component: Layout,
  name: 'index',
  redirect: '/dashboard/index',
  children: [dashboardRoute],
}

export { dashboardRoute, indexRoute }
